moving data file/testing
deleted line 'elems--;' for testing