compile version of layer