fixed Let/For bug in both implementations