moved entry and definition reset to chooselanguage function