changed != to equals