change in initialising adjancy list