error spotted during code review