set next and prev block pointers