before rewards in kernel