update working with layers