moving content into an if