added restrictions on freetext