getting rid of constant string pointer