fix function and add tags.vendor to gitignore file