deal with correct array