modified some souce because the old will have a debug when it runs