changed model
removed function that takes metadata file