(wrong) code for conditional