modified variant.table() and head