reduced preallocation of attributes on stack