reformat code, watershed, +resize