parameters change and cleanup