uploaded index, functions and header