fixed unless and hash syntax