is this just old code? don't understand what it's doing otherwise