implementing "perform fetch" from arrays
code clean up