adding internal clock