remove garbage codes