comments on scope chain
working on map function