refactored stageMetaData into stage