implement getTimeLeft and fix bug Collection