first item relations error; performance improvments graph generate g1