refactor, use _.transform
0.2.0