update base layer and remove certain layers