removed wrong type comparison