corrected bug in calculation of percent relative error