filter middle commits