add factor
Merge pull request #201 from beatgammit/feat-factor

add factor