fixing some compile errors