misbehaving pointers fixed