add new method for getting length of file item