corrected grammar
added main sentinel