adding data, functions and images