refactoring (method reference =D) + trajectories generator