fix creat tender logic and refactor some code

why don't you use blank between method args ?