change let to before block