remove uneeded data from visual state