tweaking in an attempt to get it working