add deprecate to prepare delete old class