added first two methods