remove useless checkings