added debug
remvoed debug
writing debug to pt
writing debug to pt