fixing compile problems