added a few meththods and memory usage