removed code relating to metadata