pow() use replaced by exp()