changed '==' to equals() method