refactoring: meke typing delay as a changeable setting
refactoring