updating thread creation