zero crossings working