fixed while instruciton linking after change in method add