changed BOM to a table