change variable name of surface to text. and delete empty lines