attr's and allocate