correction array loop