it should be just after the traps. that can be a hazzard if its not high enough. If the drain cloggs after it, it could allow water to over flow and damage your ceiling.