make array work