simpler faster comparision