bounds added to plane
use scan function to calculate the correct position of the plane