fix returning vector from methods