Removed the pow

used an if statement