better output via dictionary