working on layer class