algorithm displayed