working on PowerMod