use self.digits instead of harcoded 6