removing selector and accepting raw elements