perform some minor corrections