added fun to NBody