use more explicit declaration of MemStats type