cleanup and attribute