works on simple example.