changed doStatement from fucntion void to string. very nice