update preprocessing file to handle mass peak cases