debug my new func