remove useless checking logic