use a let instead of a def