implemented the pow check