fixed compile errors
fixed compile errors