trying to figure out how merge works