split into four functions, still must resolve duplicate name, then should work
deleted this staging file