making a strict check for types
Merge pull request #3 from vadhawal/master

making a strict check for types