mixing array function