tidy up with let vars