grab hash as a variable