cat function fix 1