added preprocessing for splatting