removed unwanted code in getcollection API
Merge pull request #660 from skpcharles/master

removed unwanted code in getcollection API