rearranges keys in returned dly object