fix for poorly coded 2003 code that should have been used!