extract attributes