adds code and reflection