wrapping up gpa calculation and nodeIndex