added a method to create block metadatas of a different types