refractor entity