add deprecated attribute