added a check for ads