removed the old function and replaced with new code
Merge branch 'master' of https://github.com/molgenis/molgenis
Merge pull request #393 from ChaoPang/master

removed the old function and replaced with new code