commented out trace function