write new boostrap function