remove unused code
use payload data (from, to) instead of hard-coded result field