use only array's and no pointers