put type and object variables into the same object of the context