work on preprocessing