updated selector to use RAF