basic logic
improve jsp