fixed pow/^ bug