improve clk setting