removed depricated layerX/Y