cast to (char*) , remove unused code