initial time picking code