changed slice to include final period