remove unnecessary checks