fix returning result