fixed some compile errors, oops