cleaned up param code.