.
a version without continuations