modified subtraction so it can calculate gra with lookup files provided