fixing errors

most errors gone.