fixed all compiler errors