minor edits/debugging