remove useless err handler