fleshed out array functions.