fix annoying table indices problem.
add registration data.
stupid bug