integrating back and front deleting garbage lines