day counter and save implemented