replaced constant with let statement