condensed array methods into one file