remove a lot of unused parameters