add functions for creating and accessing arrays