changes for multithreading filter, magnification and plot