added perfect registration