finally found the bug!!