minor edits to fix some issues