updated co

used old generator api