adding bootstrap code for a function