removed unused metadata argument