remove unused variable
fix argument order