preprocessing updates