fixed syntax errors in new procedures