target.truncate() removed from program