added skeleton for generate_conditionals"
moved generate_code around