changed duration check methods in condition to virtual