changed column registration algorithm