changed debug to trace