slight edits in runLoop run