extracting checkAddress as a separate function
updating and finishing the metadataprofiler