array definitions and functions.