moved ptich detector comparing to its own class