rewrote update_inlist to suit my fancy