$len is undefined hier