correcting dictionary v.s. list