remove layers implemented