fixed compile errors, oops