removes unused params