minor changes
thread fixed