added a lot of little script for handle arrays