updating with table collapse