have to check that it has not been populated before. we have to push two variables up to the parent scope