next_block takes one input now