now using format.createLayer