reward and punish the right way