fixed hash syntax and gets rid of unnesessary wrap