this line shall be moved few lines down, after ch is defined