working on layer class
working onlayer