remove the uneeded