minor edits so the dang thing actually runs