fixed register function
index files for structure