fixing addAssignment