debug compre method, not working