added two methods