started implementing pre-process
pre-process