beginning of terminal