modified some fuction to reach the target send heart packet