completed the Ransac for buiding method