finished part of servlet