get array method fix