assigned wrong value from dictionary - fixed