handling with attributes