remove unncessary comparison