added code for querySelector and query selectorAll