new func for testing