fixing problem with reward