fixes #5
Merge pull request #6 from aravindc26/patch_param_insertion

fixes #5