Make the code more convenient and  quickly,also reduce the amount of code.