add methods to retrieve metrics in MB and in GB
refactory