array loading functions