adding functions file