glue for layers training