changed function GetParam