restructure codes with bootstrap