fixed midpoint method in line
date