use _.chain for more readable code
underscore