sorted out logic for input dictionaries