added before condition