better logic for Ace value