editted comments in tap_thread()