clean some dumb code