commit with first two methods