turn object into map also