initialize with object