this now works great