changed the counter to start at 0