fixed param name and added comments