broke it down into mini scripts