updated with AddParam utility function