we should add a comment here about what this is doing.