fixes param reference