processing separate thread