removing the uneeded