polish link timer code.