refactor the avg time on site