got it working, but now I need to improve it and pick a model with a known energy function