refactor a little bit, removed print lines, not yet solved glitch with typeslider