added method to change metadata to have only one view