working array of function