fix empty line + convert to pointers