fixing power for nonnegative integers