fixed some errors introduced by me.