builds more generic data in an array
input data now in correct order