added pan to thread