current layer as variable