cleaner index function and bootstrap