phpdoc should be placed before function declaration