added tic function