dict working
refactor
input command