fixed graph construction