fixing case sensitive compare