update the transfer function calculation