1. adding thread