implemented previous_id, getting ready for custom sorting.