modify to use let binding