deletes unneeded stuff