cat function for our own