fixing comparison