removing uneeded layer