add array
add slices
merged from hubo-dev
add functions