changing create tag function