changing time remaining partial to use local var