implemented condition verification (not tested)
deleted stuff