fixed bug in chanopcp.rb caused by testing a new fuction