replaced where with let