add toarray component