added infrared motion detector