changed the function call to create a map from an expression