solve compile errors