small optimization
define default hashref for attrs