removing unneeded data