After the mark is filed, an applicant may use TM symbol and after the mark is registered (R) is used. It is illegal to use (R) before getting your mark registered.