adding support functions to array extension