modified reward()