rearranging defn snippet