On twisted polynomial rings