fixed brackets in reward script