methods for creating a dictionary