making sure reward is greater than zero