build history layers