updated to new parallel syntax