using two methods