debug ,debug and more debug