removed duplicate attribute writing