add some function for Test