implement feed_forward