Removing sample codes