added javvadoc