yeah seems I messed up and removed too many { } when modifying the script - doh!

thanks guys