do some modifications to the id calculation