delint and tidy up some parameters