separate these functions from combined files & merge with updates from same in arrayfuncs