convert to a SPA