updated params hash helper to correctly pass updates