changing the hash syntax so it works with more versions of ruby