preparation for thread model