use lambda instead of apply
remove TableExpr.apply