should be Thread instead of thread