loop graph gen script added