adding printthread