return data as hash