some error debugging made