creating if/else for var_3