fixed reflection for some structures
readjust the code to support the reflection