fix for function with power