solved MaxPointaLine