return data as map