added getChanInt function