remove unnecessary cond function