corrected errors
some fixes