change 6 arguments to 5