changed data sequences to array