pass callback into the array