fixed some errors
fixed some more compile errors