cleaning up caps