changed all references of calculate percent to grade in