woring on whole frame data and position in array