implementing array part for variables-side
still implementing the variable side