added add logic for all type of clocks
added add logic for all type of clocks