added size field to data structure