write clock