fixed let binding with parameters