added return type definition in javaDoc