refactoring create ad