remove comments and add register date