sanitised the code a lot; removed procHTML