added JavaDoc