changed the name of the semantic types argument to semantic_types