compact array process before use