robustly refactored
delete debug info
ok
improved