refactor jsps