added triggers to assign