fixed variable names
tested bootstrap function