implement getting array