transitioning to single dimension array