make Code DRY, avoid repetition