added 'cond' statement