Revert "cleanup param.c"

This reverts commit 71b8defa5b8a64042d4a59425bd198132d0198e5.