1. change the calculation of sid