cleaned up some sloppy writing