fix cycling equation