preliminary work on array