creates arrays to fill them with the new data