removing unneeded graphics