move this into updateFields function