adapting to use box2d