fix: genertic attribute write refactor