make array functions do work