1.use the constants to replace the hard code; 2.fix the bug found by IDEA plugin