organize code for manual labeling