made type optional
Merge pull request #39 from fehguy/master

made type optional