fixed ctime program