final debugging