change gpa algorithm