this is much simpler logic... why was I making it so complicated