merge remove and capture actions