added bair custom pow and removed "action" variable"