updated reward code layout