slight refactoring
comments for the id function and slight refactoring