impoved the memory usage
improved getitem in result