add preprocessor code, remove LAZY_DRAW