added clock, fixed char bug