added functions to array