minor changes
fixed problem with subject number detection