simplify advertisement logic