fixed some bugs, made macros for pointer marking