add,update

updated for jdk1.6.
added new feature