adding LayerInfos to build layers instead of having a lot of parameters