add attr writer