Remove unnecessary variable x