prints null-terminator index now