Manage to allocate ,  and  keys in different arrays.