implemented api for tags