array functions seem to be working