convert Hash to hashParams