refactoring
metadata test, intermediate