added USB cutout and refined code