adaptive example
cleanup