working on array tasks