added disable periodic if statement