added Javadoc