debugging, added pop, array for data