add analog clock, fix thread program