fixed reference issue.
updated selector and other stuff to run for each.