remove a print line, bug in adding dictionary elements