changed the deprecated : added javadoc