indentation fix & used memory update