remove waste code