fixed some obvious errors