editing results works now. needs to be refactored though