add Beginning or Ending option