start conditionals from functions code