removed debug code and fixed start time issue