work in non-debug mode