fix syntax and add sharing model