implementation of C_ARR