debug to fix error