added javadoc!!!