make safePow more impervious to math domain errors
wrong var name