cleaning up layers