problems with layers and use strict