clean up and collection attr optional.