updates - fixed TypeError