sol of 2.81
add condition to check if operation has been defined