fixed some minor problems