helps to use the right arrays