added code for reciprocal cycles