made some changes for debugging