fixing time bug, and countdown