preprocesing script for course: visualization