turn arrays into newer syntax