added inverse clock and things may work, maybe