adding cond
bug in cond