chang buffer size of motion detector