test
bug fix and array function