add delete tick function, modify query time period