forcomprehension. added toInt on the pow func