commit inArray function as well.