tempds.length -> tempdslength because it cannot be property of object