replaced new hash syntax with rocket operator