Move helper above fn. Remember: order of defn's matters.