fix type in docblock
remove unused variable