refactor layer.h, try to do compile
first step refactor layer, change of fullc