changed pow to powf