add docblock and remove unused method