thanks Dom

finally got it working.