less code + registerIDTable