remove unnecessary hooks