bugfix for predict, introduction of sending and first/last notion