added logic to remove the src during processing