compute last lens correctly