changed powf() (datatype float) to pow() (datatype double)