add cats function and remove some functions