added the scheduledfuture to afterDelayOf so it can be cancelled