implemented code for rest of merger
need to test if works