working on lagrangians etc.