changed parameters for preloaded motion detection