metadata cleared in init function