         // set virtual file end to offSet because initStore use the register methode
         //self.endOfFile = CUnsignedLongLong(self.fileOffset)
         
-        self.dataSize = sizeof(HEADER) + sizeof(T)
+        self.dataSize = sizeof(HEADER) + sizeof(O)
         
         self.endOfFile = self.fileHandle.seekToEndOfFile()
         

    var used: Bool = true;
}

class ManagedObjectStore<T: ObjectCoding ,H: Coding> : ObjectStore<T,H> {
    
    var header: NSData
    var deleteHeader: NSData

    
    // #pragma mark - CRUD Objects
    
    func registerObject(inout aObj: O) -> UID? {
        
        if aObj.dirty {
            // only NEW object can be registered,
