working to get size
support memsize