added to 3.1 and fixed syntax