refactor otp required expression