added new function in array