removed some pointer conversion errors