processing sample working with bodies