remove unnecessary state