compaired the bug
fixed the code