update Layer-class