completed arrays and functions