Adjusted update attribute method