second dict implemented