reduce loc
implement test5
easy access to parameters