refactor, phpdoc