used to calculate students results