finally the layers are working