pass hash to attribute