motion detector added