updates to functions file