cleans typing functionality