added some array operations