declare self.caps a dict