remove unused state