renamed param and added docstring for last commit