new maintext method for testing