prior to those visits , his preconceptions of nursing homes were that they were all dimly lit , filthy places where confused , moaning patients wandered the halls in the middle of the night and were watched over by orderlies who bordered on the psychotic .