Refatctor startingDP