added static keyword to max pow