parameter optimization and log removal