I suggest to get all parameter at the beginning of code.(We have unified the style :))