add note about algorithm