add some functions to coo