use meta_data method
refactor