updated bootstrap method