merge back, TODO: fix known bug in generating new graph