solved some compile errors