change command registrar function