dont use deprecated methods anymore