changed type of text parameter