debugging stage1