Fixed the func defn