added referencing to above and underlying layers
some fixing