remove bootstrap files
move pre function to the top