replcated glue_everything.r