preprocessing for naive assembly