add condition when invoke coderay.