cat function worked