thrown together first draft of tagging based on length