removed the use of attributes for the inmemory mode