intermediate update to reg_layers
update to reg_layers
finished reg_layers