removed gr_text_impl function as it was unwanted