fixed extra parenthesis around 'let' and improved formatting