correction pipeline