[#4]added access to variable
[#5]changed 'select' to 'map', fixed typo