remove unneccessary cells