fixed issue with getting arrays