remove unnecessary has