added anonymous function conditional expressions