handle empty metadata