improve work with attributes