fixed some varray calls