correct compilation issues