using two-sided extraction