fix code types