drug in / out logic