add functionality for manual labeling