fixed a couple of compiler errors