increment at bottom of loop is done in base type (integer).