add deprecated message.