remove useless check