using hash for params