updated compass with interval and flip switch