correcting passing of metadata