building local array