complete ham cycle