hash variables to methods