some fixes for pointers