add ylim and return fig to bootstrap function