make gcalc safer