fixing up the layers