deprecated two methods