small fix with deprecated methods