added drain mode