preparing for SSSP