tries doing some preprocessing