improve let
minor changes